package com.example.ordersystem.pojo;



//用户历史订单
public class Order {

    private String foodName;
    private String foodMessage;
    private int foodPrice;
    private int foodNum;
    private String storeName;
    private String userName;//订单对应的用户  便于关联
    private String otime;//订单时间

    @Override
    public String toString() {
        return "Order{" +
                "foodName='" + foodName + '\'' +
                ", foodMessage='" + foodMessage + '\'' +
                ", foodPrice=" + foodPrice +
                ", foodNum=" + foodNum +
                ", storeName='" + storeName + '\'' +
                ", userName='" + userName + '\'' +
                ", otime='" + otime + '\'' +
                '}';
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public String getFoodMessage() {
        return foodMessage;
    }

    public void setFoodMessage(String foodMessage) {
        this.foodMessage = foodMessage;
    }

    public int getFoodPrice() {
        return foodPrice;
    }

    public void setFoodPrice(int foodPrice) {
        this.foodPrice = foodPrice;
    }

    public int getFoodNum() {
        return foodNum;
    }

    public void setFoodNum(int foodNum) {
        this.foodNum = foodNum;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOtime() {
        return otime;
    }

    public void setOtime(String otime) {
        this.otime = otime;
    }

    public Order(String foodName, String foodMessage, int foodPrice, int foodNum, String storeName, String userName, String otime) {
        this.foodName = foodName;
        this.foodMessage = foodMessage;
        this.foodPrice = foodPrice;
        this.foodNum = foodNum;
        this.storeName = storeName;
        this.userName = userName;
        this.otime = otime;
    }
}
